import actions from './actions.js';
import mutations from './mutations.js';
import getters from './getters.js';

import {load} from '../../utils';

let opened = load("sidebarStatus")
if (opened === undefined) {
  opened = 1
}

const state = {
  sidebar: {
    opened: opened,
    withoutAnimation: true
  },
  device: "c",
  size: load("sidebarSize")||"medium",
}

const states = {
  namespaced: true,
  state,
  actions,
  mutations,
  getters
}

export default states;
